{% extends "base.html" %}
{% block title %}Archive for {{ day|date:"F j, Y" }} {% endblock %}

{% block head_title %} Archive for {{ day|date:"F j, Y" }} {% endblock head_title %}

{% block subnav_description %}
  {% include "blog/subnav_desc.html" %}
{% endblock subnav_description %}

{% block sidebar %}
  {% include "blog/sidebar.html" %}
{% endblock sidebar %}

{% block content %}

  {% load comments %}

  {% for object in object_list %}
    {% spaceless %}
    {% get_free_comment_count for blog.post object.id as comment_count %}
    <h1><a id="{{ object.slug }}" href="{{ object.get_absolute_url }}">{{ object.title }}</a></h1>
    <p>{{ object.body|truncatewords:80 }}</p>
    {% if object.enclosure %}<a href="{{ object.get_enclosure_url }}">Download Podcast</a> {% endif %}

    <div class="article_menu"><b>Posted on {{ object.date|date:"F j, Y" }}</b> <a href="{{ object.get_absolute_url }}#comments">{{ comment_count }} Comment{{ comment_count|pluralize }}</a></div>
    {% endspaceless %}
  {% endfor %}

{% endblock %}
